package net.ojbk.study.twobox.beans.form.query;

import net.ojbk.study.twobox.beans.form.InputItem;
import net.ojbk.study.twobox.beans.po.Jobcompany;
import net.ojbk.study.twobox.beans.vo.SelectOption;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: twobox
 * Date: 2019/4/17
 * Time: 23:13
 * Description: No Description
 */
@Component
public class JobcompanyQueryForm extends SupperQueryForm<Jobcompany> {
    public JobcompanyQueryForm() {
        this.inputItems.add(new InputItem("公司名",
                "companyname",
                "",
                "text"));


//        正常营业|有学生在岗|无学生在岗|已失效
        List<SelectOption> selectOptions = new ArrayList<>();
        selectOptions.add(new SelectOption("正常营业", "正常营业"));
        selectOptions.add(new SelectOption("有学生在岗", "有学生在岗"));
        selectOptions.add(new SelectOption("无学生在岗", "无学生在岗"));
        selectOptions.add(new SelectOption("已失效", "已失效"));
        this.inputItems.add(new InputItem("公司状态",
                "state",
                "正常营业",
                "select", selectOptions));
    }
}
